package operation;

import book.BookList;

public class ShowOperation implements Operation {
    public void work(BookList list) {
        System.out.println("显示图书...");
        int currentSize = list.getSizeUsed();
        for (int i = 0; i < currentSize; i++) {
            System.out.println(list.getBook(i));
        }
    }
}
